package com.ruoyi.gatewayadmin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 应用管理对象 gateway_app
 * 
 * @author Darwin
 * @date 2024-10-14
 */
public class GatewayApp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** UUID */
    private String uuid;

    /** 应用名称 */
    @Excel(name = "应用名称")
    private String name;

    /** 应用key */
    @Excel(name = "应用key")
    private String appkey;

    /** 应用密钥，公钥 */
    @Excel(name = "应用密钥，公钥")
    private String appsecret;

    /** 应用私钥 */
    @Excel(name = "应用私钥")
    private String privateKey;

    /** 认证方式 0：MD5签名 1：JWT */
    @Excel(name = "认证方式 0：MD5签名 1：JWT")
    private Long verifyType;

    /** 请求时间戳过期时间（秒），默认为0（永不过期） */
    @Excel(name = "请求时间戳过期时间", readConverterExp = "秒=")
    private Long expirationTime;

    /** 是否删除 0：未删除 1：已删除 */
    @Excel(name = "是否删除 0：未删除 1：已删除")
    private String deleted;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updated;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    public void setUuid(String uuid) 
    {
        this.uuid = uuid;
    }

    public String getUuid() 
    {
        return uuid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAppkey(String appkey) 
    {
        this.appkey = appkey;
    }

    public String getAppkey() 
    {
        return appkey;
    }
    public void setAppsecret(String appsecret) 
    {
        this.appsecret = appsecret;
    }

    public String getAppsecret() 
    {
        return appsecret;
    }
    public void setPrivateKey(String privateKey) 
    {
        this.privateKey = privateKey;
    }

    public String getPrivateKey() 
    {
        return privateKey;
    }
    public void setVerifyType(Long verifyType) 
    {
        this.verifyType = verifyType;
    }

    public Long getVerifyType() 
    {
        return verifyType;
    }
    public void setExpirationTime(Long expirationTime) 
    {
        this.expirationTime = expirationTime;
    }

    public Long getExpirationTime() 
    {
        return expirationTime;
    }
    public void setDeleted(String deleted) 
    {
        this.deleted = deleted;
    }

    public String getDeleted() 
    {
        return deleted;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUpdated(Date updated) 
    {
        this.updated = updated;
    }

    public Date getUpdated() 
    {
        return updated;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uuid", getUuid())
            .append("name", getName())
            .append("appkey", getAppkey())
            .append("appsecret", getAppsecret())
            .append("privateKey", getPrivateKey())
            .append("verifyType", getVerifyType())
            .append("expirationTime", getExpirationTime())
            .append("deleted", getDeleted())
            .append("created", getCreated())
            .append("createdBy", getCreatedBy())
            .append("updated", getUpdated())
            .append("updatedBy", getUpdatedBy())
            .toString();
    }
}
